package com.longteng.diamond.dao;


import com.longteng.diamond.domain.TestPlan;
import com.longteng.diamond.domain.TestPlanDetail;
import com.longteng.diamond.domain.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;


/**
 * Created by Administrator
 * DATE : 2018/6/28
 * TIME : 20:23
 * PROJECT : java-lesson
 * PACKAGE : com.longteng.lesson
 *
 * @author <a href="mailto:taki@qq.com">Administrator</a>
 */
@Mapper
public interface TestPlanMapper {

    /**
     * 创建测试计划
     * @param testPlan
     * @return
     */
    public void addPlan(TestPlan testPlan);

    /**
     * 修改测试计划
     * @param testPlan
     * @return
     */
    public void updateTestPlan(TestPlan testPlan);

    /**
     * 删除测试计划
     *
     * @param testPlanId
     * @return RequestResult
     */
    public void deleteTestPlan(Integer testPlanId);
    /**
     * 创建测试计划明细
     * @param map
     * @return
     */
    public void addPlanDetail(Map map);
    /**
     * 删除测试明细
     * @param testPlanId
     * @return
     */
    public void deletePlanDetail(Integer testPlanId);
    /**
     * 获取计划列表
     * @param testPlan
     * @return List<TestPlan>
     */
    public List<TestPlan> getTestPlan(TestPlan testPlan);

    /**
     * 根据测试计划id获取明细
     * @param testPlanId
     * @return List<TestPlanDetail>
     */
    public List<TestPlanDetail> findTestPlanDetailByTestPlanId(Integer testPlanId);
}
